package com.example.springcloud.domain;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户景点收藏对象 user_scenic_favorite
 * 
 * @author helian
 * @date 2025-03-09
 */

@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "用户景点收藏对象")
@Data
public class UserScenicFavorite implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "主键")
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    @ApiModelProperty(value = "用户id")
    private Long userId;

    /** 景点id */
    @Excel(name = "景点id")
    @ApiModelProperty(value = "景点id")
    private Long scenicId;

    /** 景点 */
    @Excel(name = "景点")
    @ApiModelProperty(value = "景点")
    private ScenicSpots scenicSpots;

    /** 收藏时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "收藏时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("scenicId", getScenicId())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
